{include file="common/header"}
<link href="/static/admin/css/other.css" rel="stylesheet">
<main class="lyear-layout-content">
    <div class="container-fluid">
        <div class="row ant-menu-submenu">
            <div class="col-lg-10 col-b90">
                <div class="card">
                    <div class="right-card-header card-header">
                        <h4>{:lang('set.chat_link')}</h4>
                    </div>
                    <div class="card-body access_code">
                        <div class="row">
                            <div class="col-lg-6">
                                <div class="input-group">
                                    <span class="input-group-addon">{:lang('set.exclusive_links')}</span>
                                    <input type="text" class="form-control" value="{:exclusiveUrl(['cuid'=>$custs['id'],'uname'=>$custs['uname'],'gid'=>$custs['group_id'],'wname'=>$main_uname])}">
                                    <span class="input-group-btn">
                                        <button class="copy-link btn btn-default" id="copyVal" data-clipboard-text="{:exclusiveUrl(['cuid'=>$custs['id'],'uname'=>$custs['uname'],'gid'=>$custs['group_id'],'wname'=>$main_uname])}" type="button">{:lang('public.copy')}</button>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</main>
{include file="common/footer"}
<script type="text/javascript" src="/static/admin/js/set.js"></script>
<script type="text/javascript" src="/static/admin/js/clipboard.min.js"></script>
<script type="text/javascript">
    var clipboard = new ClipboardJS('#copyVal');
    clipboard.on('success', function(e) {
        we_im_msg("{:lang('public.copy_success')}");
        $('.access_code input').select();
    });
</script>